package java基础知识.接口;

/**
 * @author coderFu
 * @create 2022/3/9
 * 接口的实现类
 */
public class CoderFuImpl implements CoderInterface {
    @Override
    public void demo() {
        System.out.println("我来实现接口的无返回值的方法");
    }

    @Override
    public String demo2() {
        System.out.println("我来实现接口的有返回值的方法");
        return "哈哈哈";
    }

    public static void main(String[] args) {
        System.out.println(CoderInterface.NAME);

        CoderInterface coderInterface = new CoderFuImpl();
        coderInterface.demo();
        coderInterface.demo2();

        CoderFuImpl coderFu = new CoderFuImpl();
        coderFu.test();
        coderFu.test2();
    }
}
